/*
 * @Author: wuyuxin
 * @Date: 2022-04-09 11:19:11
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-04-09 11:59:32
 * @Description: 
 */
// protected: 在类内部和子类中可以访问

class Person {
  protected name: string = "123"
  getName() {
    return this.name
  }
}

class Student extends Person {
  getName() {
    return this.name
  }
}

const stu = new Student()
console.log(stu.getName())

const person = new Person()
console.log(person.getName())

export {}